README  

Program versions: 
- R 
- Stata MP 17 (update level 28 Jul 2022)

INFO (READ BEFORE REPLICATION!)

The files provided within this .zip file are meant to reproduce the tables and figures included in the article Place-Based Campaigning: The Political Impact of Real Grassroots Mobilization" by Daniel Bischof and Thomas Kurer in the JoP. 

Please read the following instructions carefully before attempting to reproduce the tables and figures reported in the paper:

1) Most figures are created in Stata but rely on Daniel Bischof's uzh538scheme. All programming files of these scheme can be found in the folder "code/ado". You need to copy these into your Stata ado folder in order for the replication to be able to run without errors. 

[ You do not know what the Stata ado directory is, find an explanation how to find it here: 
  https://www.stata.com/support/faqs/programming/official-ado-directory/ ] 

Please note that the files should be copy-pasted into the exact same subfolders as they are right now. For instance, "scheme-538UZH.scheme" which can be found in "code/ado/s" goes into the subfolder "s" of your Stata ado directory. If such a subfolder does not exist, you need to create it. 

After copy-pasting all ados into the directory, please open Stata select preferences>graph preferences. From the drop-down menu select "538UZH". Otherwise you will be unable to reproduce the figures included in the paper. If you do not like the figure scheme you can simply select another one under preferences>graph preferences after having finished the replication. 

2) After this you need to install Stata's project environment in Stata by typing in Stata: ssc install project, replace. 

3) Then you first need to run the R scripts by opening "PlaceBased_create_data.R", marking all code and running it. Once R is finished please proceed with step 4.

4) Open Stata. First, you need to tell Stata's project environment where you saved the replication files, in particular our "PlaceBased_analysis.do" file. In Stata type:  project, setup and then select the "PlaceBased_analysis.do" file. 

5) After telling Stata where the master "PlaceBased_analysis.do" is and how you want to name the project (=PlaceBased_analysis), you type in Stata using YOUR project name: "project PlaceBased_analysis, build". This should run the entire code and result in a full replication of our findings. 

This procedure was followed and tested by a Research Assistant in August 2022 and resulted in the full replication of the tables and figures reported in our article. If in doubt about the procedure, please get in touch. 


The replication is sorted into different folders: 
  - code (provides our code and ados)
  - results (is filled by the replication project with our figures and tables)
  - data original (is filled with original data. Sources for all data is provided other than handcoded bridge files)
  - data coded (is filled by the replication project with the data our code creates)

Two datasets have been collected and merged by RAs. We are happy to provide the full documentation of their work via mail. The reason we do not include the full documation is, that Harvard Dataverse did not allow us to upload more than 1000 files. These data sets are the actual referendum results (referendum results), election results and controls (elections). 